coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: groupMember
  displayName: Group Member
  pluralName: groupMembers
  displayPluralName: Group Members
  dataSource: main
  tableName: sec_group_members
  titleAttribute: username
  description: Group Members
  core: true
  performDdl: false
  icon: UserSwitchOutlined
spec:
  attributes:
    group:
      type: relation
      relType: manyToOne
      target: group
      inversedBy: roles
      columnName: group_id
      displayName: Group
      description: Group
    username:
      type: string
      columnName: username
      displayName: User
      description: User
      required: true
      length: 50
      colWidth: 200
  indexes:
    sec_group_members_group_username_uk:
      columns:
        - group_id
        - username
      unique: true
